package com.briup.cms.dao;

import com.briup.cms.bean.BaseUser;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    // 查询用户名是否存在
    public BaseUser findUserByUsername(String username);

    public List<BaseUser> findUserByUsernameAndRoleLike(String username,Integer role);

    public void updateUser(BaseUser user);

    public void updateUserIcon(Integer id, String url);
}
